package com.xhx.spring.cycledepend;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @program: xh-learn-record
 * @description:
 * @author: sch
 * @create: 2023-03-03 19:05
 **/
@Component
public class AService {
    @Autowired
    private BService bService;

//    public AService(BService bService) {
//        this.bService = bService;
//    }

    public void log() {
        System.out.println("AService.log方法打印BService地址" + bService);
    }
}
